package com.mysoft.gfyx.marketdevelop.controller;

import com.mysoft.framework.modeling.LabelDataController;
import com.mysoft.framework.modeling.dataapi.LoadDataApi;
import com.mysoft.framework.modeling.dto.FieldsSetting;
import com.mysoft.framework.modeling.dto.LabelStyleConfig;
import com.mysoft.framework.modeling.dto.ListDataResult;
import com.mysoft.framework.modeling.dto.LoadDataParams;
import com.mysoft.framework.mvc.api.Controller;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.service.AdvanceSearchService;
import com.mysoft.gfyx.marketdevelop.service.LabelService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;
import java.util.List;

@PubService(value = "/advanceSearchCustomerLabelData", prefix = RequestPrefix.API)
@Tag(name = "高级搜索找客户-动态标签-api")
public class AdvanceSearchCustomerLabelDataController extends LabelDataController {
    @Resource
    private LabelService labelService;

    @Override
    protected List<LabelStyleConfig> loadData(String values) {
        return labelService.loadLabelFromCommaString(values);
    }
}
